package com.hp.consumer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableFeignClients
public class SpringDiscoveryConsumerApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringDiscoveryConsumerApplication.class, args);
    }

//    @Bean
////    @LoadBalanced
//    @SentinelRestTemplate(fallback = "testFallback",fallbackClass =ExceptionUtil.class ,blockHandler = "handleException", blockHandlerClass = ExceptionUtil.class)
//    public RestTemplate restTemplate() {
//        return new RestTemplate();
//    }
}
